package com.hzw.saas.web.app.schedule.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Data
@ApiModel("日程点击完成参数")
public class UserScheduleCheckParam {

    @NotBlank(message = "日程pid不可为空")
    @ApiModelProperty(value = "日程pid", required = true, position = 1)
    private String pid;

    @ApiModelProperty(value = "下次提醒日期 yyyy-MM-dd HH:mm:ss", position = 2)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime nextDueDate;

    @ApiModelProperty(value = "更新后的rrule 例如:带有count属性的规则, check后需要count-1", position = 3)
    private String repeatFlag;
}
